package cc.autoapi.pucong.auto.flow.core.qlexpress.entity;

import cc.autoapi.pucong.auto.flow.core.qlexpress.enumSelf.QlDataTypeEnum;
import cn.hutool.core.lang.UUID;

/**
 * 实体属性
 */
public class EntityQlepressNode extends EntityQlepressBase {

    private String name;

    private Object value;

    /**
     * 数据类型
     * 0 字符串
     * 1 数字
     * 2 布尔
     * 3 时间
     * 4 list
     * 5 map
     */
    private QlDataTypeEnum type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public QlDataTypeEnum getType() {
        return type;
    }

    public void setType(QlDataTypeEnum type) {
        this.type = type;
    }

    public EntityQlepressNode(String name) {
        super.setUuid(UUID.fastUUID().toString());
        this.name = name;
    }
}
